.class public Lcom/netease/newsreader/activity/AccountForgetPassword;
.super Landroid/app/Activity;
.source "AccountForgetPassword.java"


# instance fields
.field private forgetpasswordWebview:Landroid/webkit/WebView;

.field private loadingbar:Landroid/widget/LinearLayout;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 13
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/AccountForgetPassword;)Landroid/webkit/WebView;
    .locals 1
    .parameter

    .prologue
    .line 15
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountForgetPassword;->forgetpasswordWebview:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic access$1(Lcom/netease/newsreader/activity/AccountForgetPassword;)Landroid/widget/LinearLayout;
    .locals 1
    .parameter

    .prologue
    .line 16
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountForgetPassword;->loadingbar:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method private findViewsById()V
    .locals 2

    .prologue
    .line 38
    const v0, 0x7f0c0016

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountForgetPassword;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountForgetPassword;->forgetpasswordWebview:Landroid/webkit/WebView;

    .line 39
    const v0, 0x7f0c0015

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountForgetPassword;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountForgetPassword;->loadingbar:Landroid/widget/LinearLayout;

    .line 40
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountForgetPassword;->loadingbar:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 41
    return-void
.end method

.method private setListener()V
    .locals 2

    .prologue
    .line 44
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountForgetPassword;->forgetpasswordWebview:Landroid/webkit/WebView;

    new-instance v1, Lcom/netease/newsreader/activity/AccountForgetPassword$2;

    invoke-direct {v1, p0}, Lcom/netease/newsreader/activity/AccountForgetPassword$2;-><init>(Lcom/netease/newsreader/activity/AccountForgetPassword;)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 53
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .parameter "savedInstanceState"

    .prologue
    const/4 v1, 0x1

    .line 19
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 20
    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/AccountForgetPassword;->requestWindowFeature(I)Z

    .line 21
    const v0, 0x7f030003

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountForgetPassword;->setContentView(I)V

    .line 22
    invoke-direct {p0}, Lcom/netease/newsreader/activity/AccountForgetPassword;->findViewsById()V

    .line 23
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountForgetPassword;->forgetpasswordWebview:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 24
    invoke-static {p0}, Lcom/netease/newsreader/util/Tools;->isCMWAPMobileNet(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 25
    invoke-static {}, Landroid/webkit/WebView;->enablePlatformNotifications()V

    .line 26
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountForgetPassword;->forgetpasswordWebview:Landroid/webkit/WebView;

    const-string v1, "10.0.0.172"

    const-string v2, ""

    const-string v3, ""

    const-string v4, ""

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/webkit/WebView;->setHttpAuthUsernamePassword(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 28
    :cond_0
    invoke-direct {p0}, Lcom/netease/newsreader/activity/AccountForgetPassword;->setListener()V

    .line 30
    new-instance v0, Lcom/netease/newsreader/activity/AccountForgetPassword$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/AccountForgetPassword$1;-><init>(Lcom/netease/newsreader/activity/AccountForgetPassword;)V

    .line 34
    invoke-virtual {v0}, Lcom/netease/newsreader/activity/AccountForgetPassword$1;->start()V

    .line 35
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 57
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 58
    invoke-static {p0}, Lcom/netease/newsreader/util/Tools;->isCMWAPMobileNet(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 59
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountForgetPassword;->forgetpasswordWebview:Landroid/webkit/WebView;

    if-eqz v0, :cond_0

    .line 60
    invoke-static {}, Landroid/webkit/WebView;->disablePlatformNotifications()V

    .line 63
    :cond_0
    return-void
.end method
